package net.zf.dynamic.threadpool.bean;

/**
 * 线程池配置类
 * @author tengyd
 */
public class ThreadPoolConfigEntity {

    // 应用名称
    private String applicationName;

    // 线程池名称
    private String threadPoolName;

    private int corePoolSize;
    private int maxPoolSize;
    /**
     * 当前活跃线程数
     */
    private int activeCount;

    /**
     * 当前池中线程数
     */
    private int poolSize;

    private String queueType;
    /**
     * 队列大小
     */
    private int queueSize;

    private int queueRemainSize;

    /**
     * 队列剩余任务数量
     */
    private String remainTaskCount;

    public String getApplicationName() {
        return applicationName;
    }

    public void setApplicationName(String applicationName) {
        this.applicationName = applicationName;
    }

    public String getThreadPoolName() {
        return threadPoolName;
    }

    public void setThreadPoolName(String threadPoolName) {
        this.threadPoolName = threadPoolName;
    }

    public int getCorePoolSize() {
        return corePoolSize;
    }

    public void setCorePoolSize(int corePoolSize) {
        this.corePoolSize = corePoolSize;
    }

    public int getMaxPoolSize() {
        return maxPoolSize;
    }

    public void setMaxPoolSize(int maxPoolSize) {
        this.maxPoolSize = maxPoolSize;
    }

    public int getActiveCount() {
        return activeCount;
    }

    public void setActiveCount(int activeCount) {
        this.activeCount = activeCount;
    }

    public int getPoolSize() {
        return poolSize;
    }

    public void setPoolSize(int poolSize) {
        this.poolSize = poolSize;
    }

    public String getQueueType() {
        return queueType;
    }

    public void setQueueType(String queueType) {
        this.queueType = queueType;
    }

    public String getRemainTaskCount() {
        return remainTaskCount;
    }

    public void setRemainTaskCount(String remainTaskCount) {
        this.remainTaskCount = remainTaskCount;
    }

    public int getQueueSize() {
        return queueSize;
    }

    public void setQueueSize(int queueSize) {
        this.queueSize = queueSize;
    }

    public int getQueueRemainSize() {
        return queueRemainSize;
    }

    public void setQueueRemainSize(int queueRemainSize) {
        this.queueRemainSize = queueRemainSize;
    }

    @Override
    public String toString() {
        return "ThreadPoolConfigEntity{" +
                "applicationName='" + applicationName + '\'' +
                ", threadPoolName='" + threadPoolName + '\'' +
                ", corePoolSize=" + corePoolSize +
                ", maxPoolSize=" + maxPoolSize +
                ", activeCount=" + activeCount +
                ", poolSize=" + poolSize +
                ", queueType='" + queueType + '\'' +
                ", queueSize=" + queueSize +
                ", queueRemainSize=" + queueRemainSize +
                ", remainTaskCount='" + remainTaskCount + '\'' +
                '}';
    }
}
